<template>
	<view>
		<view class="box">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="u-flex u-row-between u-col-center">
					<text class="title">{{item.jc_name}}</text>
					<view class="" style="font-size:23rpx;">
						总金额：<text class="pice">{{item.total_amount}}￥</text>
					</view>
				</view>
				<view class="u-flex u-col-center u-row-between" style="padding-top: 10rpx;">
					<view class="item-bottom">
						<text>总份数：{{item.num}}</text>
					</view>
					<view class="">
						<view @click="gotoInfo(item.level_id)" class="but">分红记录</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.$u.get('shop/api.index/getJcList','')
			.then((res) => {
				this.list =res.data
			}).catch(res=>{
				
			})
		},
		methods: {
			gotoInfo(id){
				uni.navigateTo({
					url:"/pages/member/bonus/qinfo?id="+id
				})
			}
		}
	}
</script>

<style lang="scss">
.box{
	width: 100%;
	padding: 20rpx;
	.item{
		padding: 20rpx;
		width: 100%;
		background-color: #fff;
		border-radius: 10rpx;
		margin-top: 20rpx;
		.title{
			font-weight: bold;
			font-size: 30rpx;
		}
		.pice{
			color: #ff8d00;
			font-size: 26rpx;
			font-weight: bold;
		}
		.item-bottom{
			margin-top: 18rpx;
			display: flex;
			flex-direction: column;
			font-size: 24rpx;
		}
		.but{
			background-color: #f3f4f6;
			border-radius: 8rpx;
			padding: 10rpx 30rpx;
			font-size: 24rpx;
		}
	}
}
</style>
